////class Book {
////    String name;
////    String author;
//////    public void bark() {
//////        System.out.println(this.name+"汪汪叫");
//////    }
////    public static void main1(String[] args) {
////        /*Dog dog1 = new Dog();
////        dog1.name = "库迪";
////        dog1.bark();*/
////        Dog[] myDogs = new Dog[3];
////        myDogs[0] = new Dog();
////        myDogs[1] = new Dog();
////        myDogs[2] = new Dog();
////        myDogs[0].name = "Fred";
////        myDogs[1].name = "Marge";
////        myDogs[2].name = "Kar";
////        for (int i = 0;i < myDogs.length;i++) {
//////            myDogs[i].bark();
////        }
////    }
////}
////class
////
//class Books {
//    String title;
//    String author;
//}
//class BookTestDriver {
//    public static void main1(String[] args) {
//        Books[] myBooks = new Books[3];
//        myBooks[0] = new Books();
//        myBooks[1] = new Books();
//        myBooks[2] = new Books();
//        int x = 0;
//        myBooks[0].title = "The Drapes of java";
//        myBooks[1].title = "The java Gatsby";
//        myBooks[2].title = "The java Cookbook";
//        myBooks[0].author = "bob";
//        myBooks[1].author = "sue";
//        myBooks[2].author = "ian";
//        while (x < 3) {
//            System.out.println(myBooks[x].title);
//            System.out.println("by");
//            System.out.println(myBooks[x].author);
//            x = x + 1;
//        }
//    }
//}
//class GoodDog {
//    private int size;
//
//    public int getSize() {
//        return size;
//    }
//
//    public void setSize(int size) {
//        this.size = size;
//    }
//    void bark() {
//        if (size > 60) {
//            System.out.println("Wooof!Wooof!");
//        } else if (size > 14) {
//            System.out.println("Ruff!Ruff!");
//        } else {
//            System.out.println("Yip!Yip!");
//        }
//    }
//}
//class GoodDogTestDriver {
//    public static void main1(String[] args) {
//        GoodDog one = new GoodDog();
//        one.setSize(70);
//        GoodDog two = new GoodDog();
//        two.setSize(8);
//        GoodDog three = new GoodDog();
//        three.setSize(4);
//        System.out.println("Dog one:" + one.getSize());
//        System.out.println("Dog two:" + two.getSize());
//        one.bark();
//        two.bark();
//    }
//}
//class XCopy {
//    public static void main1(String[] args) {
//        int orig = 42;
//        XCopy x = new XCopy();
//        int y = x.go(orig);
//        System.out.println(orig +" " +y);
//    }
//    int go(int arg) {
//        arg = arg * 2;
//        return arg;
//    }
//}
//class Clock {
//    String time;
//    void setTime(String t) {
//        this.time = t;
//    }
//    String getTime() {
//        return time;
//    }
//}
//class ClockTestDriver {
//    public static void main(String[] args) {
//        Clock c = new Clock();
//        c.setTime("12345");
//        String tod = c.getTime();
//        System.out.println("time:" + tod);
//    }
//}
//class Person {
//    String name;
//    int age;
//    char gender;
//    public Person(String name, int age, char gender) {
//        this.name = name;
//        this.age = age;
//        this.gender = gender;
//    }
//}
//class Students extends Person {
//    int number;
//    public Students(String name, int age, char gender, int number) {
//        super(name, age, gender);//执行父类构造方法
//        this.number = number;//执行子类构造方法
//    }
//}
